package top.layne.cloud.tsf.database.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.layne.cloud.tsf.api.entity.BmsCoupon;
import top.layne.cloud.tsf.api.entity.BmsCouponExample;
import top.layne.cloud.tsf.database.mapper.BmsCouponMapper;

import top.layne.cloud.tsf.database.service.CouponService;

import java.util.List;

/**
 * @author : layne
 * @Date: 2020/7/27
 * @Time: 11:06
 * Description:
 */
@Service
public class CouponServiceImpl implements CouponService {

    @Autowired
    private BmsCouponMapper couponMapper;

    @Override
    public List<BmsCoupon> getCouponList() {
        return couponMapper.selectByExample(new BmsCouponExample());
    }
}
